package com.bing.img.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by Zhou Bing
 * <p>
 * 2017/11/15.
 */
@Entity // 实体
public class Img {

    @Id // 主键
    private String id;//uuid

    @Column(columnDefinition = "longtext",name = "baseValue")
    private String baseValue;//base64

    public Img() {
    }

    public Img(String id, String baseValue) {
        this.id = id;
        this.baseValue = baseValue;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setBaseValue(String baseValue) {
        this.baseValue = baseValue;
    }

    public String getId() {
        return id;
    }

    public String getBaseValue() {
        return baseValue;
    }
}
